/// @author: lijinxi.1220@bytedance.com
/// @description:
/// @date: 2024/11/18 19:21

class Plan {
  final String name;
  final String description;
  final DateTime startTime;
  final String author;
  final String cover;

  Plan({
    required this.name,
    required this.description,
    required this.startTime,
    required this.author,
    required this.cover,
  });
}

// 生成 10 个随机的 Plan 对象
List<Plan> generateRandomPlans() {
  List<Plan> plans = [];
  for (int i = 0; i < 10; i++) {
    Plan plan = Plan(
      name: 'Plan $i',
      description:
          'This is plan $i description.This is plan $i description.This is plan $i description.This is plan $i description.This is plan $i description.',
      startTime: DateTime.now(),
      author: 'Author $i',
      cover:
          'https://book.flutterchina.club/assets/img/6-15.202cef73.png', // 替换为实际的封面 URL
    );
    plans.add(plan);
  }
  return plans;
}
